package com.mashibing.practice01.conf;

import org.apache.zookeeper.ZooKeeper;
import org.junit.After;

/**
 * 分布式配置中心代码实现 practice
 *
 * @author liuyno
 * @date 2021/3/11 - 23:52
 */
public class TestConf {
    ZooKeeper zk;

    //获取连接
    @After
    public void getConn() {
        zk = ZKUtils.getZk();
    }


    //使用连接




    //关闭连接
    public void closeConn() {
        try {
            zk.close();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
